home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1052 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: mn5.swip.net!usenet
  2. From: roland.bengtsson@mbox3.swipnet.se (Roland Bengtsson)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Function like UPPER but ANY in C ?
  5. Date: 14 Jan 1996 20:30:32 GMT
  6. Organization: -
  7. Message-ID: <1232.6587T1210T1084@mbox3.swipnet.se>
  8. References: <68771033@0humpty.tomate.tng.oche.de>
  9. NNTP-Posting-Host: dialup100-143.swipnet.se
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  11.  
  12.  
  13.  >:    Hello,
  14.  
  15.  >:I am not capable of coding in any other than Arexx, but have come into the
  16.  >:need of modifiyng a GoldED Scanner. I have noticed, that the Guides Scanner
  17.  >:does not work correct with guides, which have their keywords in lower case.
  18.  >:No I need a function (or whatever) that does an ANY instead of UPPER.
  19.  
  20. I don't know what you mean with ANY but if you want to convert a character to
  21. uppercase you can clear the fifth bit like this:
  22.  
  23. #define UPPER(a) (a&(~32))
  24.  
  25. /* in use */
  26.  
  27. int i
  28. char str[10] = "Example";
  29.  
  30. for(i=0;str[i];i++)
  31.     str[i] = UPPER(str[i]);
  32. -- 
  33.                               \|/
  34. Thor 2.22                     @ @
  35. +--------------------------oOO-(_)-OOo----------+
  36. |Amigaowner  |                                  |
  37. |since 1988  |                                  |
  38. |    _       |Fidonet> 2:203/802.6              |
  39. | _ //       |                                  |
  40. | \X/        |Falkenberg, Westcoast of Sweden   |
  41. |A3000/10MB  |                                  |
  42. |280HD/28.8  |Please write where YOU live!      |
  43. |GVP Spectrum|                                  |
  44. +------------+----------------------------------+
  45. AMIGA - Multimedia, Preemptive Multitasking
  46. Plug'n'Play since 1985.
  47. PGP-key Available
  48.  
  49.